home *** CD-ROM | disk | FTP | other *** search
-
- Floatting point numbers can be inserted into the XBW database
- only in two ways:
-
- a) d(name 1.234); creates a floating point VAR-Element.
- that thing works just fine :-))
-
- b) bg(name . 1.234); the 'bg' command inserts a floating point
- only if it has decimals other than 0000...
-
- so, to create floating point numbers, use
-
- bg(name . 1.234);
- bg(name . 1.00000000001); (for a "1")
- bg(name . 0.00000000001); (for a "0")
-
- DO NOT WRITE
- bg(name . 1.0); or
- bg(name . 0.0); because that creates integer VAR-Elements
-
- CURE FOR THAT PROBLEM: define bg() with a dummy value and instantly
- set it to the desired value via:
-
- (dbl)OBJ:name.V := 1.0; (if you want an exact 1 value)
-
-
-
-
-